package com.googlecode.sc2dm.server.sender;

import com.googlecode.sc2dm.server.authentication.Authentication;
import com.googlecode.sc2dm.server.authentication.AuthenticationData;
import com.googlecode.sc2dm.server.authentication.GoogleAuthentication;

/**
 * @Author Jarle Hansen (jarle@jarlehansen.net)
 * Created: 6:53 PM - 9/28/11
 */
enum C2DMFactory {
    ;

    
    private static Authentication createAuthentication(AuthenticationData authenticationData) {
        return new GoogleAuthentication(authenticationData);
    }

    static MessageSender createMessageSender(AuthenticationData authenticationData) {
        return new C2DMMessageSender(createAuthentication(authenticationData));
    }
}
